package com.onlyMe.world.objects
{
	import com.onlyMe.world.objects.IsleObject;
	
	import flash.events.Event;

	public final class IsleObjectEvent extends Event
	{
		public static const COORD_CHANGED:String = 'ioeCoordChanged';
		public static const CONTEXT_CHANGED:String = 'ioeContextChanged';
		
		public static const ACTIVATED_IN_ISLE:String = 'ioeActivatedInIsle';
		public static const ACTIVATED_IN_INVENTORY:String = 'ioeActivatedInInventory';
		
		public static const DESTROYED:String = 'ioeDestroyed';
		
		private var _other:IsleObject;
		
		public function IsleObjectEvent(type:String, other:IsleObject=null)
		{
			super(type);
			_other = other;
		}
		
		public function get other():IsleObject
		{
			return _other;
		}
		
		override public function clone():Event
		{
			return new IsleObjectEvent(type, other);
		}
		
	}
}
